# 智能等待
from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get("https://www.baidu.com/")
driver.find_element_by_id("kw").send_keys("胡歌")
driver.find_element_by_id("su").click()
driver.implicitly_wait(10)
driver.find_element_by_link_text("胡歌明星资料大全-胡歌动态_胡歌电视剧电影-爱奇艺泡泡").click()
time.sleep(3)
driver.quit()